#include<stdio.h>
#include<unistd.h>
#include<signal.h>
#include<stdlib.h>

void Usage(const char *proc)
{
  printf("Usage %s pid signo\n", proc);
}

int main(int argc,  char* argv[])
{
  if(argc != 3){
    Usage(argv[0]);
    return 1;
  }
  
  int pid = atoi(argv[1]);//PID
  int signo = atoi(argv[2]);//信号

  kill(pid, signo);
  //struct sigaction act, oact;

  //act.sa_handler = handler; 
  //act.sa_flags = 0;
  //act.sa_mask = 
  //signal(2,handler);

   //kill(atoi(argv[[1]]),atoi(argv[2]))
   //signal(2,handler);
   //while(1)
   //{
   // printf("hello ... \n");
   // sleep(1);
   //}
    return 0;
}
